package com.zhang.mapper;

import com.zhang.entity.Blog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 张立松
 * @since 2023-03-31
 */
@Repository
public interface BlogMapper extends BaseMapper<Blog> {
    Boolean updateUserNickname(Long userId, String value);
    Boolean updateUserAvatar(Long userId, String value);
    Boolean updateCommentSelfSubtract(Long blogId);    //评论数自减1
}
